import request from '../utils/request'

/**
 * 提现明细
 */
export const receivingdetail = params => request({
  url: 'receiving/detail',
  method: 'GET',
  params
})

/**
 * 账户提现
 */
export const withdrawal = params => request({
  url: 'account/withdrawal',
  method: 'POST',
  params
})

/**
 * 提现银行卡信息
 */
export const account = params => request({
  url: 'receiving/account',
  method: 'GET',
  params
})

/**
 * 账户收入支出明细
 */
export const bill = params => request({
  url: 'account/bill',
  method: 'GET',
  params
})

/**
 * 创建账户银行卡信息
 */
export const update = data => request({
  url: 'receiving/account/update',
  method: 'POST',
  data
})
